package work4;

/**
 * 玩家类
 */
public class Palyer {
    public static void main(String[] args) {
        Robber robber = new Robber("赵云龙", 88, "我是一个盗贼");
        Hunter hunter = new Hunter("刘海涛", 77, "我是一个猎人");
        Doctor doctor = new Doctor("赵雨滴", 76, "我是一个医生");
        Soldier soldier = new Soldier("何杨", 99, "我是一个士兵");
        Farmer farmer = new Farmer("朱俊辉", 78, "我是一个农民");

        robber.rob();
        robber.attack();
        hunter.hunt();
        hunter.attack();
        farmer.mine();
        farmer.attack();
        farmer.treat();
        doctor.d();
        doctor.treat();
        soldier.so();
        soldier.defend1(hunter);
        soldier.defend(farmer);
        soldier.defend2(robber);
    }
}
